package com.cn.wanxi.thread.rule;

import java.util.Random;

public class MyThreadThree extends Thread {
    @Override
    public void run() {
        long start = System.currentTimeMillis();
        StringBuilder string = new StringBuilder();
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 50000; j++) {
                Random random = new Random();
                random.nextInt();
                string.append(random.nextInt());
            }
        }
        long end = System.currentTimeMillis();
        System.out.println("线程3用的时间为： " + (end - start));
    }
}